/**
 * Created by Freeman on 2016/8/2.
 */
import React from 'react'
import {Route} from 'react-router'
import App from './containers/App'
import UserPage from './containers/UserPage'
import RepoPage from './containers/RepoPage'

export default (
    <Route path="/" component={App}>
        <Route path="/:login/:name"
               component={RepoPage} />
        <Route path="/:login"
               component={UserPage} />
    </Route>
)